#ifndef MAINWIDGET_H
#define MAINWIDGET_H
#include "pixitem.h"
#include <QWidget>
#include <QGraphicsItem>
#include<QGraphicsScene>
#include<QGraphicsView>
#include<QPixmap>
#include<QPainter>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWidget; }
QT_END_NAMESPACE

class MainWidget : public QWidget
{
    Q_OBJECT

public:
    MainWidget(QWidget *parent = nullptr);
    ~MainWidget();

private:
    Ui::MainWidget *ui;
    int iAngle;//角度
    qreal scalevalues;//缩放
    qreal leanvalues;//倾斜


public slots:
    void rotateFunc(int);//旋转
    void scaleFunc(int);//缩放
    void leanFunc(int);//倾斜


};
#endif // MAINWIDGET_H
